﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Lian3.Models
{
    public class Student1
    {
        [Required,StringLength(10,MinimumLength =2)]
        [Display(Name ="邮箱")]
        [EmailAddress]//验证这个属性是否是邮箱类型
        public string  Name { get; set; }

        [Display(Name = "密码")]
        [DataType(DataType.Password)]//密码样式
        [Required,MaxLength(6)]
        public string Pow { get; set; }
    }
}